﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace eLoan.Models
{
    public class LoanJournalModel
    {
        public List<LoanJournal> LoanJournals { get; set; }

        [Display(Name = "Document No")] 
        public string DocumentNo { get; set; }

        [Display(Name="Borrower")]
        public string BorrowerName { get; set; }

        [Required]
        [Display(Name = "Remarks")]
        public string Remarks { get; set; }
    }

    public class LoanPaymentHistoryModel
    {
        [Display(Name = "Document No")]
        public string DocumentNo { get; set; }

        [Display(Name = "Loan Date")]
        public DateTime DocumentDate { get; set; }

        [Display(Name = "Borrower")]
        public string BorrowerName { get; set; }

        [Display(Name = "Payment Frequency")]
        public string ProceedTypeName { get; set; }

        [Display(Name = "Payment Start date")]
        public DateTime? PaymentStartDate { get; set; }

        [Display(Name = "Maturity Date")]
        public DateTime? PaymentEndDate { get; set; }

        [Display(Name = "Receivable")]
        public decimal Receivable { get; set; }

        [Display(Name = "Outstanding Balance")]
        public decimal OutstandingBalance { get; set; }

        [Display(Name = "Total Payment")]
        public decimal TotalPayment { get; set; }

        public List<ScheduleVsPaymentModel> ScheduleVsPaymentModel { get; set; }
    }
}